from django.conf.urls import url, include
from django.contrib import admin
from api.views import account
from api.views import article, account, comment

urlpatterns = [
    url(r'^login/', account.LoginView.as_view(), name='login'),
    url(r'^article/$', article.ArticleView.as_view(), name='article'),
    url(r'^article/(?P<pk>\d+)/$', article.ArticleDetailView.as_view(), name='article_detail'),
    url(r'^comment/$', comment.CommentView.as_view(), name='comment'),
    url(r'^comment/(?P<pk>\d+)/$', comment.CommentDetailView.as_view(), name='comment_detail'),
]
